<?php

namespace api\modules\backend\models;

use \yii\db\ActiveRecord;

/**
 * Apply Gift Model
 *
 * @author Fong <xiaofeng.zhang@suppernovachina.com>
 */
class ApplyGift extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%apply_gift}}';
    }

    /**
     * @inheritdoc
     */
    public static function primaryKey()
    {
        return ['apply_gift_id'];
    }

    /**
     * Define rules for validation
     */
    public function rules()
    {
        return [
            [['apply_id', 'gift_id'], 'required']
        ];
    }
}
